package com.tigerhhzz.springcloud.service;

import com.tigerhhzz.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author tigerhhzz
 * @date 2023/4/14 19:57
 */
@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    /*查询记录*/
    @GetMapping(value = "/payment/getById/{id}")
    public CommonResult getPaymentById(@PathVariable("id") Long id);


    /*openfeign超时测试*/
    @GetMapping(value = "/payment/feign/timeout")
    public String getFeignTimeOut();
}
